package com.example.demo.dao;

import com.example.demo.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;


@Mapper
public interface UserMapper {

    int insert(User user);

    User selectUserById(@Param("userId") Long userId);
    User selectUserByUserName(@Param("username")String username);

    int updateWinnerUserById(Long userId);

    int updateLoserUserById(Long userId);
}
